///<reference path="../../../../node_modules/@angular/core/src/metadata/lifecycle_hooks.d.ts"/>
import {Component, OnInit} from '@angular/core';
import {CommonIp} from "../../user/entity/Ip";

@Component({
  selector: 'my-info-in-project-component',
  templateUrl: './my-info-in-project.html'
})
export class MyInfoInProjectComponent  extends CommonIp
implements OnInit{
  ngOnInit(): void {
    if(sessionStorage.getItem("name")!=null) {
      document.getElementById("personalName").innerHTML = sessionStorage.getItem("name");
    }

    if(sessionStorage.getItem("userimg")!=null){
      document.getElementById("imgsrc").setAttribute("src",sessionStorage.getItem("userimg"));

    }

  }
}
